.admin-dashboard {
    padding: 24px;
    background: #f0f2f5;
    min-height: 100%;
}

.dashboard-header {
    margin-bottom: 32px;
    text-align: center;
}

.dashboard-title {
    font-size: 32px;
    font-weight: 700;
    color: #262626;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #1890ff, #722ed1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    font-size: 16px;
    color: #8c8c8c;
    margin: 0;
}

.stats-row {
    margin-bottom: 32px;
}

.stat-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1890ff, #722ed1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-card-users::before {
    background: linear-gradient(90deg, #1890ff, #40a9ff);
}

.stat-card-templates::before {
    background: linear-gradient(90deg, #722ed1, #b37feb);
}

.stat-card-views::before {
    background: linear-gradient(90deg, #fa8c16, #ffc53d);
}

.stat-card-favorites::before {
    background: linear-gradient(90deg, #eb2f96, #f759ab);
}

.stat-card .ant-statistic-title {
    font-size: 14px;
    color: #8c8c8c;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-card .ant-statistic-content {
    font-size: 28px;
    font-weight: 700;
}

.stat-card .ant-statistic-content-prefix {
    font-size: 20px;
    margin-right: 8px;
}

.stat-trend {
    margin-top: 12px;
    font-size: 12px;
    color: #52c41a;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tables-row {
    margin-bottom: 24px;
}

.data-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.data-card .ant-card-head {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 24px;
}

.data-card .ant-card-body {
    padding: 0;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #262626;
}

.card-title .anticon {
    font-size: 18px;
    color: #1890ff;
}

.data-card .ant-table {
    background: transparent;
}

.data-card .ant-table-thead > tr > th {
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    color: #262626;
    padding: 12px 16px;
}

.data-card .ant-table-tbody > tr > td {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
}

.data-card .ant-table-tbody > tr:hover > td {
    background: #f8f9ff;
}

.data-card .ant-table-tbody > tr:last-child > td {
    border-bottom: none;
}

/* 进度条样式 */
.data-card .ant-progress {
    margin: 0;
}

.data-card .ant-progress-line {
    width: 80px;
}

.data-card .ant-progress-text {
    font-size: 12px;
    color: #8c8c8c;
}

/* 标签样式 */
.data-card .ant-tag {
    border-radius: 12px;
    font-size: 11px;
    padding: 2px 8px;
    border: none;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .tables-row .ant-col {
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .admin-dashboard {
        padding: 16px;
    }
    
    .dashboard-header {
        margin-bottom: 24px;
    }
    
    .dashboard-title {
        font-size: 24px;
    }
    
    .dashboard-subtitle {
        font-size: 14px;
    }
    
    .stats-row {
        margin-bottom: 24px;
    }
    
    .stat-card .ant-statistic-content {
        font-size: 24px;
    }
    
    .data-card .ant-card-head {
        padding: 12px 16px;
    }
    
    .card-title {
        font-size: 14px;
    }
    
    .data-card .ant-table-thead > tr > th,
    .data-card .ant-table-tbody > tr > td {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .admin-dashboard {
        padding: 12px;
    }
    
    .dashboard-title {
        font-size: 20px;
    }
    
    .stat-card .ant-statistic-content {
        font-size: 20px;
    }
    
    .stat-card .ant-statistic-content-prefix {
        font-size: 16px;
    }
    
    .data-card .ant-table {
        font-size: 11px;
    }
    
    .data-card .ant-progress-line {
        width: 60px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.data-card {
    animation: fadeInUp 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
